<include file="public@header"/>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('index')}">商户分类列表</a></li>
		<li><a href="{:url('add')}">添加商户分类</a></li>
		<li class="active"><a>编辑商户分类</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminCategory/editPost')}">
		<div class="form-group">
			<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>上级</label>
			<div class="col-md-6 col-sm-10">
				<select class="form-control" name="parent_id" id="input-parent">
					<option value="0">作为一级分类</option>
					{$categories_tree}
				</select>
			</div>
		</div>
		<div class="form-group">
			<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>商户分类名称</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-name" name="name" value="{$category.name}">
			</div>
		</div>
		<div class="form-group">
			<label for="input-name" class="col-sm-2 control-label">商品分类别名</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-name" name="alias" value="{$category.alias}">
			</div>
		</div>
		<div class="form-group">
			<label for="input-name" class="col-sm-2 control-label">排序</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-name" name="list_order" value="{$category.list_order}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="id" value="{$category['id']}">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>